﻿using System.Collections;
using System.Collections.Generic;
using BearUtil.Hidden;
using Sirenix.OdinInspector;
using UnityEngine;
namespace BearUtil
{
	[CreateNodeMenu("自定义节点/黑屏转场"), Title("黑屏转场"), NodeTintAttribute("#E2312E")]
	public class BlackTransition : BearNode
	{
		[LabelText("节点类型"), HideInInspector]
		public int type = 16;
		[HideLabel, ValueDropdown("GetTransition", DropdownWidth = 300), OnValueChanged("SetTransition")]
		public string _value_transition = "全黑屏";
		[LabelText("类型选择"), HideInInspector]
		public int transition_type = 2;
		public void SetTransition (string propDesc) => transition_type = CreateNewProperty.Instance.GetPropertyContent("Transition", _value_transition).IntParam;
		public List<string> GetTransition () 
{ return CreateNewProperty.Instance.GetPropertyContentDesc("Transition"); }
		[LabelText("持续时间毫秒")]
		public int duration;
	}
}
